execute unless items entity @s player.crafting.* * run return 0
execute if items entity @s player.crafting.0 * run function map:anti_craft/slot {slot:0}
execute if items entity @s player.crafting.1 * run function map:anti_craft/slot {slot:1}
execute if items entity @s player.crafting.2 * run function map:anti_craft/slot {slot:2}
execute if items entity @s player.crafting.3 * run function map:anti_craft/slot {slot:3}